const router=require('./index');


let product_Index_fn=(ctx,next)=>{

    var productArr=[
        {
            id:1,
            product:'男装',
            KuCun:118,
            price:'688',
            PinPaiShan:'海澜之家'
        },
        {
            id:2,
            product:'女装',
            KuCun:200,
            price:'580',
            PinPaiShan:'海澜小家'

        },
        {
            id:3,
            product:'童装',
            KuCun:2218,
            price:'566',
            PinPaiShan:'海澜之家'

        },
    ]

    ctx.body=productArr

 }



let delete_fn=(ctx,next)=>{

        // console.log(ctx.request.params.id)

        // let delete_id=ctx.request.params.id;

}


 module.exports={
    "get /product":product_Index_fn,
    "get /product/:id":delete_fn
 }